#ifndef SCENE_QT_H
#define SCENE_QT_H

//页面场景的基类

#include <QMainWindow>
#include <QCloseEvent>
#include <QGraphicsScene>
#include <QMenuBar>
#include <QPainter>
#include <QDebug>
#include <QTimer>
#include <QLabel>
#include <QString>
#include <QGraphicsSceneMouseEvent>
#ifndef HEAD_Q_H
#include "../head_Q.h"
#endif

#ifndef MYPUSHBUTTION_H
#include "mypushbutton.h"
#endif

#ifndef VIEW_QT_H
#include "../utils/View_qt.h"
#endif

class Scene_qt: public QMainWindow
{
    Q_OBJECT
protected:
    View_qt *view;
    QGraphicsScene *scene;
public:
    explicit Scene_qt(QWidget *parent = null);
    virtual void paintEvent(QPaintEvent *);

    //设置游玩界面属性及图标
    void setup();
    //返回按钮
    void setbackbutton();
    // 关闭窗口
    void closeEvent(QCloseEvent *event);
    virtual ~Scene_qt();
signals:
    void chooseSceneBack();//返回信号
    void save();//存档信号
};

#endif // SCENE_QT_H
